package com.drinks.yiniang.io.api;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by han on 2019/3/6 0006.
 */

public class BaseApiIO {
    public static final int RESULT_ERROR_CODE = 0xff;
    public static final int RESULT_SOCKET_TIMEOUT_CODE = 0xfe;
    public static final int RESULT_UNKNOW_HOST_CODE = 0xfd;
    public static final int RESULT_REQUEST_EXCEPTION_CODE = 0xfc;
    public static final String RESULT_ERROR_MSG = "暂无数据";
    public static final String RESULT_SOCKET_TIMEOUT_MSG = "请求超时";
    public static final String RESULT_UNKNOW_HOST_CODE_MSG = "网络连接异常, 请检查网络设置";
    public static final String RESULT_MSG_EXCEPTION = "数据解析异常";
    public static final String RESULT_REQUEST_EXCEPTION = "数据请求异常";

    protected Map<String, String> paramsMap = new HashMap<>();

    //登录终端app, moes
    protected final String TYPE_LOGIN_TERMINAL = "app";
    //类型 ios,andriod,pad
    protected final String TYPE_LOGIN_CLIENT = "android";
}
